package com.cy.service;

import com.cy.bean.Driverschoolcomplaint;
import com.cy.mapper.ComplaintMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComplaintServiceImpl implements ComplaintService{
    @Autowired
    private ComplaintMapper complaintMapper;

    @Override
    public List<Driverschoolcomplaint> getComplaintList(int did,String startDay,String endDay) {
        return complaintMapper.getComplaintList(did, startDay, endDay);
    }

    @Override
    public int replyComplaint(Driverschoolcomplaint driverschoolcomplaint) {
        int info=complaintMapper.replyComplaint(driverschoolcomplaint);
        return info;
    }
}
